package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @program: tensquare_parent
 * @description:
 * @author: tianshengfei
 * @create: 2019-12-05 12:49
 **/
public interface SpitDao extends MongoRepository<Spit,String> {

    public Page<Spit> findAllByParentid(String parentId,Pageable pageable);

}
